import type { TabsProps } from "antd";
import { Tabs } from "antd";
import Cellinformation from "../Cellinformation/Cellinformation";
import Supportinginformation from "../Supportinginformation/Supportinginformation";
import "./index.css";

const CommunityAdd = () => {
  //tabs标签页
  const onChange = (key: string) => {
    console.log(key);
  };
  //tabs数据
  const items: TabsProps["items"] = [
    {
      key: "1",
      label: `小区信息`,
      children: <Cellinformation/>,
    },
    {
      key: "2",
      label: `配套信息`,
      children: <Supportinginformation/>,
    },
  ];
  return (
    <div className="communityAddBox">
      <div className="communityAddTop">
        <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
      </div>
    </div>
  );
};

export default CommunityAdd;
